import request from '@/utils/request'

// 获取解决方案类型列表
export function listSolutionType(query) {
  return request({
    url: '/system/manager/solution/type/list',
    method: 'get',
    params: query
  })
}

// 查询解决方案列表
export function listSolution(query) {
  return request({
    url: '/system/manager/solution/getInfo/',
    method: 'get',
    params: query
  })
}

// 新增解决方案
export function addSolution(data) {
  return request({
    url: '/system/manager/solution/insert',
    method: 'post',
    data: data
  })
}

// 修改解决方案
export function updateSolution(data) {
  return request({
    url: '/system/manager/solution/update',
    method: 'post',
    data: data
  })
}

// 删除解决方案
export function delSolution(data) {
  return request({
    url: '/system/manager/solution/batchDelete',
    method: 'post',
    data: data
  })
}
